<html><head><title>SetGadgetText</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">SetGadgetText()</font></b></p>
<p><b>Syntax</b></p><blockquote>
<font color="#006666"><b>SetGadgetText</b></font>(#Gadget, Text$)</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Change the gadget text content of the specified gadget. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Gadget</i></td>
<td width="90%"> 
The gadget to use. 

</td></tr>
<tr><td><i>Text$</i></td>
<td> 
The new text to set. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>
None.


</blockquote><p><b>Remarks</b></p><blockquote>

This function is especially useful for: 
<br>
<br>
- <a href="buttongadget.html">ButtonGadget()</a>: change the text of the ButtonGadget. 
<br>
- <a href="comboboxgadget.html">ComboBoxGadget()</a>: Set the displayed text. If the ComboBoxGadget is not editable, the text must be in the dropdown list. 
<br>
- <a href="dategadget.html">DateGadget()</a>: change the input mask for the dates in the gadget. See <a href="../date/formatdate.html">FormatDate()</a> for the format of the Text$ parameter. 
<br>
- <a href="editorgadget.html">EditorGadget()</a>: change the text content of the editor gadget. If you want to add several lines of text at once, separate them with "Chr(13)+Chr(10)". 
<br>
- <a href="explorercombogadget.html">ExplorerComboGadget()</a>: change the current displayed directory. 
<br>
- <a href="explorerlistgadget.html">ExplorerListGadget()</a>: change the current displayed directory and/or the pattern for files (see <a href="explorerlistgadget.html">ExplorerListGadget()</a> for more details). 
<br>
- <a href="explorertreegadget.html">ExplorerTreeGadget()</a>: change the current selected directory and/or the pattern for files (see <a href="explorertreegadget.html">ExplorerTreeGadget()</a> for more details). 
<br>
- <a href="framegadget.html">FrameGadget()</a>: change the title of the FrameGadget. 
<br>
- <a href="hyperlinkgadget.html">HyperLinkGadget()</a>: change the text of the HyperLinkGadget. 
<br>
- <a href="listviewgadget.html">ListViewGadget()</a>: selects the item that exactly matches the given text. 
<br>
- <a href="stringgadget.html">StringGadget()</a>: change the content of the StringGadget. 
<br>
- <a href="textgadget.html">TextGadget()</a>: change the content of the TextGadget. 
<br>
- <a href="treegadget.html">TreeGadget()</a>: change the text of the currently selected item. 
<br>
- <a href="webgadget.html">WebGadget()</a>: change the current URL. 

</blockquote><p><b>See Also</b></p><blockquote>

<a href="getgadgettext.html">GetGadgetText()</a>, <a href="getgadgetitemtext.html">GetGadgetItemText()</a>, <a href="setgadgetitemtext.html">SetGadgetItemText()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=setgadgetstate.html>SetGadgetState()</a> - <a href=index.html>Gadget Index</a> - <a href=shortcutgadget.html>ShortcutGadget()</a> ->

</body></html>